*{
    margin: 0;
    padding: 0;
}
.layout {
  min-height: 100vh;
  position: relative;
  background-color: #f9fafb;
}

.header {
  position: fixed;
  width: 100%;
  max-height: 95vh;
  z-index: 10;
  padding: 0 24px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background-color: #1282f0;
  height: 64px;
  top: 0;
  left: 0;
}

.content {
  padding: 88px 24px 90px;
  background: #f9fafb;
  min-height: 100vh;
}

.chatContainer {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  min-height: calc(100vh - 178px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.welcomeScreen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  color: #666;
  background: linear-gradient(to bottom, #ffffff, #f9fafb);
}

.welcomeIcon {
  font-size: 72px;
  margin-bottom: 28px;
  color: #1890ff;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.messageList {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  padding-bottom: 80px;
  background-color: #f9fafb;
  scroll-behavior: smooth;
  margin-bottom: 70px;
}

.message {
  padding: 12px 0 !important;
  border: none !important;
  transition: all 0.3s ease;
}

.messageContent {
  display: flex;
  align-items: flex-start;
  max-width: 100%;
  animation: fadeIn 0.3s ease-out;
  flex-direction: row;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.avatar {
  flex-shrink: 0;
  margin-right: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
}

.user {
  background-color: #1890ff;
  background: linear-gradient(135deg, #1890ff, #096dd9);
}

.assistant {
  background-color: #52c41a;
  background: linear-gradient(135deg, #52c41a, #389e0d);
}

.messageBubble {
  background: #fff;
  padding: 14px 18px;
  border-radius: 18px;
  max-width: calc(100% - 60px) !important;
  width: fit-content;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  line-height: 1.6;
  font-size: 15px;
}

.messageBubble:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.userMessage .messageBubble {
  background: #e6f7ff;
  background: linear-gradient(135deg, #e6f7ff, #bae7ff);
  border-top-right-radius: 4px;
}

.userMessage .messageBubble::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 12px;
  border-width: 8px 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent transparent #bae7ff;
}

.inputArea {
  padding: 20px 24px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 5;
}

.inputContainer {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
}

.inputContainer :global(.ant-input) {
  border-radius: 12px;
  padding: 12px 16px;
  resize: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  font-size: 15px;
  line-height: 1.5;
}

.inputContainer :global(.ant-input:focus) {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #40a9ff;
}

.sendButton {
  padding: 10px 20px;
  height: auto;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #1890ff, #096dd9);
  border: none;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

.sendButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
}

.sendButton:active {
  transform: translateY(0);
}

.inputHint {
  margin-top: 8px;
  color: #999;
  font-size: 12px;
  text-align: right;
  font-style: italic;
}

.footer {
  text-align: center;
  background: transparent;
}

.numberDisplay {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  padding: 4px 0;
  line-height: 1.2;
  background: linear-gradient(45deg, #1890ff, #096dd9);
  -webkit-text-fill-color: transparent;
}

.numberDisplay + .numberDisplay {
  margin-top: 4px;
}

.headerContent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.featureList {
  display: flex;
  gap: 32px;
  margin-top: 24px;
}

.featureItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #666;
}

.featureItem :global(.anticon) {
  font-size: 24px;
  color: #1890ff;
}

.messageBubbleWrapper {
  flex: 1;
  display: flex;
  /* flex-direction: column; */
  gap: 8px;
}

.messageActions {
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.messageContent:hover .messageActions {
  opacity: 1;
}

.actionButton {
  color: #8c8c8c;
  padding: 4px 8px;
}

.actionButton:hover {
  color: #1890ff;
}

.inputDisabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .content {
    padding: 70px 12px 90px 12px;
  }

  .chatContainer {
    border-radius: 0;
    box-shadow: none;
    min-height: calc(100vh - 160px);
  }

  .messageList {
    padding: 16px;
  }

  .inputArea {
    padding: 16px;
    border-radius: 0;
  }

  .messageBubble {
    max-width: calc(100% - 60px);
    padding: 12px 16px;
    font-size: 14px;
  }

  .featureList {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .messageActions {
    opacity: 1;
  }
  
  .sendButton {
    padding: 8px 16px;
  }
  
  .avatar {
    margin-right: 12px;
  }
}
